package com.gph.saviorframework.es.annotations;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Documented
@Inherited
public @interface Field {

	FieldType type() default FieldType.Auto;//数据类型

	FieldIndex index() default FieldIndex.analyzed;

	DateFormat format() default DateFormat.none;

	String pattern() default "";

	boolean store() default false;//是否要存储

	String searchAnalyzer() default "ik_max_word";//默认为ik的ik_max_word

	String analyzer() default "ik_max_word";//默认为ik的ik_max_word

	String[] ignoreFields() default {};//忽略的字段集合

	boolean includeInParent() default false;
}
